package com.hxzy.mapper;

import com.hxzy.entity.ShoppingCart;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

/**
* @author 11452
* @description 针对表【shopping_cart(购物车)】的数据库操作Mapper
* @createDate 2023-08-28 11:54:55
* @Entity com.hxzy.entity.ShoppingCart
*/
public interface ShoppingCartMapper extends BaseMapper<ShoppingCart> {


    @Delete(value = "delete from shopping_cart where merchant_id=#{merchantId} and user_id=#{userId}")
    Long clearCart(@Param(value = "merchantId") Long merchantId,  @Param(value = "userId") int userId);
}




